﻿
CREATE PROCEDURE sp_Sys_TableMaster_Insert 
	-- Add the parameters for the stored procedure here
	(
				@TableID int,
				@TableName varchar(50),
				@TableSequenceNo int,
				@ModuleID int
	)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    INSERT INTO [Sys_TableMaster]
           (	
				[TableID],
				[TableName],
				[TableSequenceNo],
				[ModuleID],
				[Sys_DateOfCreation],
				[Sys_DateOfModification],
				[Sys_CreatedByID],
				[Sys_ModifiedByID],
				[Sys_DeleteType],
				[Sys_IsDeleted],
				[Sys_OrganizationID],
				[Sys_InitialPrimaryKeys],
				[Sys_WorkstationName]
			)
     VALUES
           (
				@TableID, 
				@TableName, 
				@TableSequenceNo, 
				@ModuleID,
				GETDATE(),
				GETDATE(),
				'SysAdmin',
				'SysAdmin',
				1,
				0,
				-1,
				NULL,
				NULL
			)
END
